//1.一级分类
//一级分类返回值每一项类型
export interface cateGory1ItemType {
    id: number;
    name: string;
}
//一级分类返回值完整类型
export type cateGory1ListType = cateGory1ItemType[]



//2.二级分类
//二级分类返回值每一项类型
export interface cateGory2ItemType {
    id: number;
    name: string;
    category1Id: number
}
//二级分类返回值完整类型
export type cateGory2ListType = cateGory1ItemType[]



//3.三级分类
//三级分类返回值每一项类型
export interface cateGory3ItemType {
    id: number;
    name: string;
    category2Id: number
}
//三级分类返回值完整类型
export type cateGory3ListType = cateGory1ItemType[]



//4.平台属性列表
//平台属性列表参数类型
export interface attrListParamsType {
    category1Id: number;
    category2Id: number;
    category3Id: number;
}
//平台属性值列表每一项类型
export interface attrValueItemType {
    id?: number;
    valueName: string;
    attrId?: number;
    isEdit?: boolean
}
//平台属性值列表类型
export type attrValueListType = attrValueItemType[]
//平台属性列表返回值每一项类型
export interface attrListReturnItemType {
    id: number;
    attrName: string;
    categoryId: number;
    categoryLevel: number;
    attrValueList: attrValueListType;
}
//平台属性列表返回值类型
export type attrListReturnType = attrListReturnItemType[]


//5.新增或修改平台属性参数类型
export interface addOrEditAttrParamsType {
    id?: number;
    attrName: string;
    categoryId: number;
    categoryLevel: number;
    attrValueList: attrValueListType
}